package com.zzw.design.command;

/**
 * @author zzw
 * @see
 * @since 2018/3/21
 */
public class MinimizeCommand extends Command {

    private WindowHanlder whObj; //维持对请求接收者的引用

    public MinimizeCommand() {
        whObj = new WindowHanlder();
    }

    //命令执行方法，将调用请求接收者的业务方法
    @Override
    public void execute() {
        whObj.minimize();
    }
}
